<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="p" uri="/WEB-INF/tld/page.tld" %>
<form id="scene-tableform">
<table id="scene-table" class="table table-striped table-bordered bootstrap-datatable responsive">
    <thead>
    <tr>
    	<th></th>
        <th>景区名称</th>
        <th>景区星级</th>
        <th>景区位置</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${scenePage.list }" var="scene">
    <tr>
    	<td><input type="checkbox" name="sceneId" value="${scene.scenic_id }"></td>
        <td>${scene.name }</td>
        <td class="center">${scene.level }</td>
        <td class="center">${scene.sce_address }</td>
        <td class="center">${scene.IsOK_display }</td>
        <td class="center">
        	<a href="javascript:;" class="btn btn-default" onclick='editScene("${scene.scenic_id}");'>编辑</a>
        </td>
        <!-- <td class="center">
            <a class="btn btn-success" href="#">
                <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                View
            </a>
            <a class="btn btn-info" href="#">
                <i class="glyphicon glyphicon-edit icon-white"></i>
                Edit
            </a>
            <a class="btn btn-danger" href="#">
                <i class="glyphicon glyphicon-trash icon-white"></i>
                Delete
            </a>
        </td> -->
    </tr>
    </c:forEach>
    </tbody>
</table>
</form>
<a href="/scene/add_view.htm" class="btn btn-default">新增</a>
<a href="javascript:;" class="btn btn-default" onclick="delScene();">删除</a>
<!-- <a href="javascript:;" class="btn btn-default" onclick="editScene();">编辑</a> -->
<p:page pageNo="${scenePage.pageNo }" totalPage="${scenePage.totalPage }" 
	totalRow="${scenePage.totalRow }"/>